package day8.pack1;

public final class Dog extends Pet {
    public Dog() {}
    public Dog(String nickname, int health, int love, String type) {
        setNickname(nickname);
        setType(type);
        setHealth(health);
        setLove(love);
    }
    public Dog(String nickname, int health,  String type) {
        setNickname(nickname);
        setType(type);
        setHealth(health);
    }

    public void jfp() {
        System.out.println("狗狗玩接飞盘游戏");
    }

    public static final String LBLD = "聪明的拉布拉多犬";
    public static final String XNR = "酷酷的雪纳瑞";
    private String type;

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public void print() {
        System.out.println("我的名字叫" + this.getNickname()
                + ",我的健康值是" + this.getHealth() +
                ",我和主人的亲密程度是" + this.getLove() +
                ",我的类型是" + this.getType());

    }

    @Override
    public void eat() {
        System.out.println("狗吃粮");
    }

//    public void a() {}
}
